package com.huazhi.wzsnw.service.impl;

import com.huazhi.wzsnw.mapper.XzMapper;
import com.huazhi.wzsnw.model.Xzzd;
import com.huazhi.wzsnw.service.XzzdServcie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XzzdServiceImpl implements XzzdServcie {
    @Autowired
    private XzMapper xzMapper;
    @Override
    public int insert(Xzzd xzzd) {
       return  xzMapper.insert(xzzd);
    }

    @Override
    public List<Xzzd> selectByTitle(String title) {
        return xzMapper.selectByTitle(title);
    }

    @Override
    public List<Xzzd> selectAll() {
        return  xzMapper.selectAll();
    }

    @Override
    public Xzzd selectById(Integer id) {
        return xzMapper.selectById(id);
    }

    @Override
    public List<Xzzd> selectVyPid(Integer pid) {
        return  xzMapper.selectVyPid(pid);
    }

    @Override
    public int deleteByTitle(String title) {
        return  xzMapper.deleteByTitle(title);
    }

    @Override
    public List<Xzzd> selectByIds(List<Integer> ids) {
        return  xzMapper.selectByIds(ids);
    }

    @Override
    public List<Xzzd> selctZxNotInIds(List<Integer> ids, Integer pid) {
        return  xzMapper.selctZxNotInIds(ids,pid);
    }
}
